package com.db2excel;

import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

/**
 * Created by wxg on 2019/1/4 11:06
 */
public interface DataReader {
    /**
     * Append data to excel.
     */
    DataReader append(List<Map<String, Object>> dataList) throws Exception;

    /**
     * export to excel
     */
    void export(OutputStream outputStream) throws IOException;
}
